
class SuccessModel{
    constructor({data,msg}){
        this.status=0;
        this.httpCode=200;
        this.msg=msg;
        this.data=data || {};
    }
}


class ErrorModel{
    constructor({msg,httpCode}){
        this.status=1;
        this.httpCode=httpCode || 500;
        this.msg=msg || '服务端出错'
    }
}


module.exports={
    SuccessModel,
    ErrorModel
}